package vue.consultation;

import javax.swing.JPanel;
import java.awt.BorderLayout;
import javax.swing.BoxLayout;
import java.awt.FlowLayout;
import javax.swing.JList;
import javax.swing.AbstractListModel;
import java.awt.Dimension;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JButton;
import javax.swing.border.LineBorder;
import java.awt.SystemColor;
import java.awt.Font;
import javax.swing.JScrollBar;
import java.awt.Scrollbar;

public class SelectParcours extends JPanel {

	/**
	 * Create the panel.
	 */
	public SelectParcours() {
		setLayout(new BorderLayout(0, 0));
		
		JPanel panel = new JPanel();
		add(panel);
		panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));
		
		JPanel panel_1 = new JPanel();
		panel.add(panel_1);
		panel_1.setLayout(new BorderLayout(0, 0));
		
		JPanel panel_2 = new JPanel();
		panel_2.setBorder(new EmptyBorder(50, 20, 50, 20));
		panel_2.setPreferredSize(new Dimension(300, 10));
		panel_1.add(panel_2, BorderLayout.WEST);
		panel_2.setLayout(new BorderLayout(0, 0));
		
		JPanel panel_5 = new JPanel();
		panel_5.setBorder(new EmptyBorder(10, 0, 10, 0));
		panel_2.add(panel_5, BorderLayout.CENTER);
		panel_5.setLayout(new BorderLayout(0, 0));
		
		JList list = new JList();
		list.setBorder(new LineBorder(SystemColor.activeCaption));
		panel_5.add(list);
		
		JScrollBar scrollBar = new JScrollBar();
		panel_5.add(scrollBar, BorderLayout.EAST);
		
		JPanel panel_6 = new JPanel();
		panel_2.add(panel_6, BorderLayout.SOUTH);
		
		JButton btnVisualiserCeParcours = new JButton("Visualiser ce parcours");
		panel_6.add(btnVisualiserCeParcours);
		
		JPanel panel_7 = new JPanel();
		panel_2.add(panel_7, BorderLayout.NORTH);
		
		JLabel lblSlectionnerUnParcours = new JLabel("S\u00E9lectionner un parcours :");
		lblSlectionnerUnParcours.setFont(new Font("Arial", Font.BOLD, 13));
		panel_7.add(lblSlectionnerUnParcours);
		
		JPanel panel_3 = new JPanel();
		panel_3.setBorder(new EmptyBorder(50, 50, 50, 50));
		panel_1.add(panel_3, BorderLayout.CENTER);
		panel_3.setLayout(new BorderLayout(0, 0));
		
		JPanel panel_4 = new JPanel();
		panel_3.add(panel_4, BorderLayout.CENTER);
		panel_4.setLayout(new BorderLayout(0, 0));
		
		JLabel lblNewLabel = new JLabel("New label");
		lblNewLabel.setPreferredSize(new Dimension(10, 100));
		panel_4.add(lblNewLabel);
		
		JScrollBar scrollBar_1 = new JScrollBar();
		panel_4.add(scrollBar_1, BorderLayout.EAST);
		
		JScrollBar scrollBar_2 = new JScrollBar();
		scrollBar_2.setOrientation(JScrollBar.HORIZONTAL);
		panel_4.add(scrollBar_2, BorderLayout.SOUTH);

	}

}
